package com.zbkj.service.service.impl.splittingAccount;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zbkj.common.model.shop.BagSpecs;
import com.zbkj.service.dao.shop.BagSpecsDao;
import com.zbkj.service.service.BagSpecsService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
@RequiredArgsConstructor
public class BagSpecsServiceImpl  extends ServiceImpl<BagSpecsDao, BagSpecs>
        implements BagSpecsService {

    @Override
    @DS("pointarchive")
    public BagSpecs get(Long bagSpecsId) {
        return this.getOne(new QueryWrapper<BagSpecs>()
                .lambda()
                .eq(BagSpecs::getId, bagSpecsId)
        );
    }
}
